import request from '@/utils/request'

// 用户储值卡/充值卡列表
export function getCusPrepaidList(data) {
  return request({
    url: '/api/customer_prepaid_list',
    method: 'POST',
    data,
  })
}

// 储值卡/充值卡列表
export function getPrepaidList(data) {
  return request({
    url: '/api/prepaid_list',
    method: 'POST',
    data,
  })
}

// 添加储值卡/充值卡
export function addPrepaid(data) {
  return request({
    url: '/api/prepaid_add',
    method: 'POST',
    data,
  })
}

// 删除储值卡/充值卡
export function delPrepaid(data) {
  return request({
    url: '/api/prepaid_del',
    method: 'POST',
    data,
  })
}

// 获取储值卡面额列表
export function amountPrepaid(data) {
  return request({
    url: '/api/prepaid_amount',
    method: 'POST',
    data,
  })
}

// 获取赠送礼包列表
export function getPrepaidGift(data) {
  return request({
    url: '/api/get_prepaid_gift',
    method: 'POST',
    data,
  })
}

// 获取选定礼包的礼包值
export function getPrepaidGiftVal(data) {
  return request({
    url: '/api/prepaid_gift',
    method: 'POST',
    data,
  })
}

// 开通储值卡
export function creatPrepaid(data) {
  return request({
    url: '/api/creat_prepaid',
    method: 'POST',
    data,
  })
}

// 获取储值赠送礼包列表
export function getGiftList(data) {
  return request({
    url: '/api/prepaid_gift_list',
    method: 'POST',
    data,
  })
}

// 调账
export function adjustmentPrepaid(data) {
  return request({
    url: '/api/prepaid_account_adjustment',
    method: 'POST',
    data,
  })
}

// 充值
export function rechargePrepaid(data) {
  return request({
    url: '/api/prepaid_recharge',
    method: 'POST',
    data,
  })
}

// 添加储值赠送礼包
export function addGift(data) {
  return request({
    url: '/api/prepaid_gift_add',
    method: 'POST',
    data,
  })
}

// 删除储值赠送礼包
export function delprepaidGif(data) {
  return request({
    url: '/api/prepaid_gift_del',
    method: 'POST',
    data,
  })
}
